-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade VTMGO REST API to version 12 #325
Conversation
@CasvanDongen you are fast! :) |
I've also committed the changes to the requirements.txt which I had to make locally to be able to install the required packages. |
resources/lib/vtmgo/vtmgo.py
Outdated
@@ -45,7 +45,7 @@ def _mode(self): | |||
def get_config(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you don't use self
anymore, you should now remove it and mark it as a staticmethod. This way pylint stays happy.
@staticmethod
def get_config():
I've tried to run the test locally, but I still get some errors. You won't get correct test results here, since your repository doesn't have the required credentials as configured secrets. You can however run them locally, if you copy .env.example to .env en use pipenv or something to load them before running the tests. You should be able to get the ADDON_TOKEN and ADDON_PROFILE from the json file that is created in the Kodi addon_data folder. |
Hmm, maybe it's an issue on my end. The test fails to play VTM2 livestream, it is complaining that i'm geoblocked, but VTM1 works fine. |
Thanks for the quick review. I've annotated the I've already ran the testsuite and locally I'm not seeing any failed tests on version 3.6 and 3.8 with a fresh valid token.
Since I'm being geo-blocked by VTM I do have to use a little trick to be able to receive data from the stream API. But that shouldn't be an issue for these tests. |
It seems to be related to my IPv6 address. They seem to think that it's not a Belgian IP address. |
Thanks! I'll create a new release with your fix. |
Changes for the plugin to be compatible with version 12 of the VTM GO api since 11 has been deprecated.
This PR fixes the issues from #324